package top.ddandang.blog.model.vo;

import top.ddandang.blog.model.pojo.Message;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 封装返回的留言信息
 * </p>
 *
 * @author D
 * @version 1.0
 * @date 2020/7/15 15:33
 */
@Data
@Accessors(chain = true)
public class MessageVo {

    @ApiModelProperty(value = "留言Id")
    private Integer id;

    @ApiModelProperty(value = "用户Id")
    private Integer userId;

    @ApiModelProperty(value = "留言内容")
    private String content;

    @ApiModelProperty(value = "是否置顶")
    private Boolean topping;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime gmtCreate;

    @ApiModelProperty(value = "用户昵称")
    private String nickname;

    @ApiModelProperty(value = "用户头像")
    private String avatar;

    @ApiModelProperty(value = "是否是管理员")
    private Boolean position;

    @ApiModelProperty(value = "回复的留言")
    private List<Message> childrenMessage;

}
